package com.qf.bbapi.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.bbapi.entity.TTaskIntegral;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (TTaskIntegral)表数据库访问层
 *
 * @author makejava
 * @since 2022-07-02 19:20:04
 */
public interface TTaskIntegralDao extends BaseMapper<TTaskIntegral> {
    @Select("select * from t_task_integral where uid=#{uid} and type=#{type} order by ctime desc limit 1")
    TTaskIntegral selectById(@Param("uid") int uid,@Param("type") int type);
}

